Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: place files at top-level of release archives #274

Merged
merged 1 commit into from
Aug 10, 2023
Merged

ci: place files at top-level of release archives #274

merged 1 commit into from
Aug 10, 2023

Conversation

jnsgruk
Copy link
Member

@jnsgruk jnsgruk commented Aug 10, 2023

Follow up from a conversation with @rebornplusplus which made me realise that our release archives actually create a tarball containing a directory named . with the files within it.

This change makes all the files appear at the top-level of the archive.

@jnsgruk
Copy link
Member Author

jnsgruk commented Aug 10, 2023

To make this clearer - compare these two results:

This is is the output when inspecting the tar from the 1.2.0 release:

tar -tf pebble_v1.2.0_linux_amd64.tar.gz
./
./README.md
./pebble
./COPYING

And this is from the tarball generated in the CI run for this PR:

tar -tf pebble_v1.2.0+git34.g3c976f0_linux_amd64.tar.gz    
COPYING
README.md
pebble

@jnsgruk jnsgruk requested a review from benhoyt August 10, 2023 07:38
Copy link
Member

@rebornplusplus rebornplusplus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow, this was a nicer way. 🤦

Copy link
Member

@hpidcock hpidcock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️

@jnsgruk jnsgruk merged commit caf9135 into canonical:master Aug 10, 2023
13 checks passed
@jnsgruk jnsgruk deleted the fix-release-archive branch August 10, 2023 11:36
@benhoyt
Copy link
Contributor

benhoyt commented Aug 10, 2023

@jnsgruk Want me to re-upload the v1.2.0 binaries with this change, or should leave those and just wait till the next versioned release?

@jnsgruk
Copy link
Member Author

jnsgruk commented Aug 11, 2023

@benhoyt i don't think so - should be fine to leave those :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants